<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<tiles:insert page="/general/templateLoggedIn.jsp">
	<tiles:put name="title" value="Name Page"/>
	<tiles:put name="nav"/>
	<tiles:put name="content" type="string">

	<h2>Previous Data:</h2>
		
		<ol class="tree">
			<li><label for="general">General Information</label><input type="checkbox" id="general" />
				<ol> 
					<li>
						<table>
							<tr><td>First Name:</td><td><c:out value="${sessionScope.applicant.firstName}"/></td></tr>
							<tr><td>Middle Initial:</td><td><c:out value="${sessionScope.applicant.middleInitial}"/></td></tr>
							<tr><td>Last Name:</td><td><c:out value="${sessionScope.applicant.name}"/></td></tr>
							<tr><td>Country of Citizenship:</td><td><c:out value="${sessionScope.applicant.countryOfCitizenship}"/></td></tr>
						</table>
					</li>
				</ol>
			</li>
		</ol>
			<hr>
			<br>
		
		<h2>Application</h2>
		
			Please select your country of residence from the list bellow.<br><br> 
				
			<table>
				<tr>
					<td>	
						<c:forEach var="col1" items="${requestScope.countriesCol1}">
							<html:link action="/countryOfResidence">
								<html:param name="id" value="${col1.id}"/>
								<html:param name="location" value="${col1.name}"/>
								${col1.name}
							</html:link>
							<br>
						</c:forEach>	
					</td>
					<td>
						<c:forEach var="col2" items="${requestScope.countriesCol2}">
							<html:link action="//countryOfResidence">
								<html:param name="id" value="${col2.id}"/>
								<html:param name="location" value="${col2.name}"/>
								${col2.name}
							</html:link>
							<br>
						</c:forEach>
					</td>
					<td>
						<c:forEach var="col3" items="${requestScope.countriesCol3}">
							<html:link action="//countryOfResidence">
								<html:param name="id" value="${col3.id}"/>
								<html:param name="location" value="${col3.name}"/>
								${col3.name}
							</html:link>
							<br>
						</c:forEach>
					</td>
				</tr>
			</table>
			
	</tiles:put>
</tiles:insert>